﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WcfHelloContract;
using WcfHelloContract.Entiny;

namespace WcfHelloService
{
    public class HelloService : IHelloService
    {
        public string SayHello(Person person)
        {
            return string.Format("Hello,my name is {0}, age is {1}, sex is {2}, i very happy to study wcf.", person.Name, person.Age, person.Sex==1?"boy":"girl");
        }

        public List<Person> GetPersons()
        {
            List<Person> pl = new List<Person>();
            pl.Add(new Person("Feng", 26, 1));
            pl.Add(new Person("Xin", 26, 0));
            return pl;
        }
    }
}
